<?php
/**
 * Created by PhpStorm.
 * User: rui
 * Date: 2018/7/30
 * Time: 下午11:15
 */

namespace app\api\validate;


use think\Validate;

class AccountValidate extends Validate
{
    protected  $rule = [
        'bank_id'=>'number|require'
        ,'size'=>'number'
        ,'user_id'=>'require'
    ];

    protected $message = [
        'bank_id.require'=>'请先添加银行卡'
    ];

    protected $scene = [
        'add'=>['bank_id']
    ];
}